/**
 * 
 */
package org.swing.utility.net.core;

import java.util.Iterator;
import java.util.StringTokenizer;

/**
 * @author lqnhu
 *
 */
public class StringSplitter extends StringTokenizer implements Iterable<String> {
	public StringSplitter(String str, String delim) {
		super(str, delim);
	}

	public StringSplitter(String str, String delim, boolean includeTok) {
		super(str, delim, includeTok);
	}

	public Iterator<String> iterator() {
		return new Iterator<String>() {
			public boolean hasNext() {
				return hasMoreTokens();
			}

			public String next() {
				return nextToken();
			}

			public void remove() {
			}
		};
	}
}
